﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SupplyResponse.aspx.cs"
    Inherits="ATW.MT.SellManage.SupplyResponse" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>供应商历史报价</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <script type="text/javascript" src="../Scripts/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="../Scripts/jsharp.popupdiv.js"></script>
    <link rel="Stylesheet" href="../Styles/css.css" />
    <link rel="Stylesheet" href="../Styles/jquery-ui.css" />
    <base target="_self" />
    <script type="text/javascript" src="../Scripts/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="main_hd">
        <h2 style="padding: 0px 20px;">
            历史报价——<asp:Label runat="server" ID="lblName"></asp:Label>
        </h2>
        <div class="title_tab" id="topTab">
            <table style="width: 100%">
                <tr>
                    <td style="width: 30%">
                        报价标题：&nbsp;<input type="text" id="txtTitle" runat="server" />
                    </td>
                    <td style="width: 10%">
                        审核状态：&nbsp;
                    </td>
                    <td style="width: 40%">
                        <asp:DropDownList runat="server" ID="ddlStatus" Width="150px">
                            <asp:ListItem Text="全部" Value=""></asp:ListItem>
                            <asp:ListItem Text="未报价项目" Value="0"></asp:ListItem>
                            <asp:ListItem Text="已报价项目" Value="1"></asp:ListItem>
                            <asp:ListItem Text="已删除项目" Value="2"></asp:ListItem>
                            <asp:ListItem Text="已收到合同" Value="3"></asp:ListItem>
                            <asp:ListItem Text="执行中合同" Value="4"></asp:ListItem>
                            <asp:ListItem Text="已完成合同" Value="5"></asp:ListItem>
                            <asp:ListItem Text="报价被采用" Value="6"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                    <td rowspan="2" style="width: 20%">
                        &nbsp; &nbsp; &nbsp;
                        <asp:Button runat="server" ID="btnSearch" Text="搜索" class="MaintenanceButton" OnClick="btnSearch_Click"
                            Style="background: #d91913; outline: none; border: none; color: White; padding: 5px 20px;" />
                        &nbsp; &nbsp; &nbsp;
                    </td>
                </tr>
                <tr>
                    <td>
                        发布时间：&nbsp;<input id="txtPubStart" runat="server" class="Wdate" type="text" onfocus="var p_next=getDate('txtPubEnd');WdatePicker({skin:'whyGreen',maxDate:p_next||'%y-%M-%d'})" />&nbsp;
                    </td>
                    <td>
                        &nbsp;&nbsp; &nbsp;至&nbsp; &nbsp;&nbsp; &nbsp;
                    </td>
                    <td>
                        <input id="txtPubEnd" class="Wdate" runat="server" type="text" onfocus="var p_prv=getDate('txtPunStart'); WdatePicker({skin:'whyGreen',minDate:p_prv,maxDate:'%y-%M-%d'})" />
                        &nbsp;&nbsp;
                    </td>
                </tr>
            </table>
            <ul>
                <li>
                    <asp:Label runat="server" ID="lblError" ForeColor="Red" Font-Bold="true"></asp:Label></li>
            </ul>
        </div>
        <asp:Repeater ID="rpList" runat="server">
            <HeaderTemplate>
                <table width="95%" border="0" cellpadding="0" cellspacing="0" style="font-size: 14px"
                    class="queryResultTable">
                    <tr>
                        <th>
                            报价标题
                        </th>
                        <th>
                            发布人
                        </th>
                        <th>
                            发布时间
                        </th>
                        <th>
                            状态
                        </th>
                        <th>
                            查看详情
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%#Eval("title").ToString()%>
                    </td>
                    <td>
                        <%#Eval("tauName").ToString()%>
                    </td>
                    <td>
                        <%#Eval("create_time").ToString()%>
                    </td>
                    <td>
                        <%#Eval("rowstatus").ToString()%>
                    </td>
                    <td>
                        <asp:LinkButton runat="server" ID="lbnArgs" OnClick="lbnArgs_Click" CommandArgument='<%#Eval("ResponseID").ToString() %>'>查看</asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <cc1:AspNetPager ID="AspNetPager1" Style="float: right" runat="server" PageSize="10"
            AlwaysShow="true" CssClass="paginator" CurrentPageButtonClass="cpb" FirstPageText="首页"
            PagingButtonSpacing="0" LastPageText="尾页" NextPageText="下一页" PrevPageText="上一页"
            OnPageChanged="AspNetPager1_pageChanged">
        </cc1:AspNetPager>
    </div>
    <script type="text/javascript">
        function getDate(o) {
            var obj = $('[id$=' + o + ']').get(0);
            return $(obj).val()
        }
    </script>
    <div id="divMsg" style="display: none;">
        <div class="tc_header">
            <h2>
                提示</h2>
            <a id="hideMsg">
                <img src="../images/chacha.png" width="13" height="13"></a>
        </div>
        <div class="tc_content">
            <div class="tanchu03" style="">
                <p id="msgContent">
                </p>
            </div>
        </div>
    </div>
    </form>
</body>
</html>
